<template>
  <div>
    <div class="w">
       <!-- <h2><i class="el-icon-s-promotion"></i> 关于我们</h2> -->
       <Title title='关于我们' icon='el-icon-s-promotion'></Title>
       <!-- 页面具体信息 -->
       <div class="detail  ql-editor"  v-html="pageHtml">
     </div>
    </div>
    
  </div>
</template>

<script>
import Title from '@/components/title.vue'
import {getPage} from '@/api/page'
export default {
  components:{Title},
  data(){
    return{
      pageHtml:''
    }
  },
  async created(){
    let  {data} = await getPage({title_contains:'关于我们'})
    let res = data.filter(item=>item.id ===7)
    this.pageHtml = res[0].content
  }
}
</script>

<style lang="less" scoped>
.w{
  width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
  h2{
    color:#ffa400;
    font-weight: 400;
    font-size: 20px;
    margin: 20px 0;
  }
  .detail{
    margin-top: 15px;
    width: 100%;
    border: 2px solid #ccc;
    padding-top: 10px;
    padding-bottom: 5px;
    p{
      color: red;
    }
  }
}

</style>